/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.timesoft.zk.common.generator;

import com.timesoft.common.convertor.Base64ConvertorUtils;
import com.timesoft.global.webservice.WebServiceClient;
import com.timesoft.webservice.client.base.BaseWebService;
import org.apache.log4j.Logger;

/**
 *
 * @author sorasaks
 */
public abstract class Generator {
    
    private static final Logger LOG = Logger.getLogger(Generator.class);
    
    protected String typeCode;
    protected static final BaseWebService baseService = WebServiceClient.getBaseService();
    protected static final Base64ConvertorUtils base64 = new Base64ConvertorUtils();
    
    public static final String CUSTOMER_CODE = "CUSTOMER_CODE";
    
    protected Generator(String typeCode) {
        this.typeCode = typeCode;
    }
    
    protected abstract String generateCustomerCode() throws Exception;
    public abstract String generateCode() throws Exception;
}
